package com.example.oauth.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.oauth.model.Authorities;
import com.example.oauth.service.AuthoritiesService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author macro
 * @since 2020-09-11
 */
@RestController
@RequestMapping("/oauth/authorities")
public class AuthoritiesController {
	
	@Autowired
	private AuthoritiesService authoritiesService;
	
	
	public Object add(@RequestBody Authorities authorities) {
		return this.authoritiesService.save(authorities);
	}
	
	
	
}

